<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	request.setAttribute("actionEntity","orderform");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<%=basePath%>resource/theme/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>resource/javascript/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/javascript/jquery.validate.js"></script>
<script type="text/javascript" src="<%=basePath%>resource/javascript/messages_zh.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
	 $("#saveUpdateForm").validate({debug:false});
});
</script>
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a>	</li>
	<li><a href="#">订单管理</a>	</li>
	<li><a href="#">订单维护</a></li>
    </ul>
    </div>
    <div class="formbody">
    <div class="formtitle"><span>订单维护</span></div>
    <form id="saveUpdateForm" action="<%=basePath%>${actionEntity}/saveUpdate.action" method="post">
    <input type="hidden" name="id" value="${entity.id}" />
    
        <ul class="forminfo">
<%--    	<li><label>id</label><input id="entityid" class="dfinput" type="text" name="id"  value="${ entity.id}" data-rule-required="true"/></li>--%>
		<li><label>初始地址</label><input id="entityorigin" class="dfinput" type="text" name="origin"  value="${ entity.origin}" data-rule-required="true"/></li>
		<li><label>目标地址</label><input id="entitydestination" class="dfinput" type="text" name="destination"  value="${ entity.destination}" data-rule-required="true"/></li>
		<li><label>实时地址</label><input id="entityrealtimeaddress" class="dfinput" type="text" name="realtimeaddress"  value="${ entity.realtimeaddress}" data-rule-required="true"/></li>
		<li><label>派件人</label>
		<select class="dfinput" name="consignorid" id="entityzjfl" data-rule-required="true">
	    	<c:forEach items="${pjrs}" var="item">
	    		<option value="${item.id}" <c:if test="${item.id==entity.consignorid}">selected="selected"</c:if> >${item.username}</option>
	    	</c:forEach>
		</select>
<%--		<input id="entityconsignorid" class="dfinput" type="text" name="consignorid"  value="${ entity.consignorid}" data-rule-required="true"/>--%>
		</li>
		<li><label>收件人</label>
		
		<select class="dfinput" name="consigneeid" id="entityzjfl" data-rule-required="true">
	    	<c:forEach items="${sjrs}" var="item">
	    		<option value="${item.id}" <c:if test="${item.id==entity.consigneeid}">selected="selected"</c:if> >${item.username}</option>
	    	</c:forEach>
		</select>
		
		
<%--		<input id="entityconsigneeid" class="dfinput" type="text" name="consigneeid"  value="${ entity.consigneeid}" data-rule-required="true"/>--%>
		</li>
		<li><label>状态</label>
		    <cite>安排投递：<input type="radio" name="status" value="安排投递" <c:if test="${entity.status == '安排投递' || empty entity.status}">checked="checked"</c:if> />
			                正在投递：<input type="radio" name="status" value="正在投递" <c:if test="${entity.status == '正在投递'}">checked="checked"</c:if>/>
			                快件签收：<input type="radio" name="status" value="快件签收" <c:if test="${entity.status == '快件签收'}">checked="checked"</c:if>/></cite>
		
<%--		<input id="entitystatus" class="dfinput" type="text" name="status"  value="${ entity.status}" data-rule-required="true"/>--%>
		</li>
		<li><label>价格</label><input id="entityprice" class="dfinput" type="text" name="price"  value="${ entity.price}" data-rule-required="true"/></li>
		<li><label>派件时间</label><input id="entityinitialtime" class="dfinput" type="text" name="initialtime"  value="${ entity.initialtime}" data-rule-required="true"/></li>
		<li><label>快递员</label>
		
		<select class="dfinput" name="expressid" id="entityzjfl" data-rule-required="true">
	    	<c:forEach items="${kdys}" var="item">
	    		<option value="${item.id}" <c:if test="${item.id==entity.expressid}">selected="selected"</c:if> >${item.username}</option>
	    	</c:forEach>
		</select>
		
<%--		<input id="entityexpressid" class="dfinput" type="text" name="expressid"  value="${ entity.expressid}" data-rule-required="true"/>--%>
		</li>
<%--		<li><label>createtime</label><input id="entitycreatetime" class="dfinput" type="text" name="createtime"  value="${ entity.createtime}" data-rule-required="true"/></li>--%>
<%--		<li><label>ext1</label><input id="entityext1" class="dfinput" type="text" name="ext1"  value="${ entity.ext1}" data-rule-required="true"/></li>--%>
<%--		<li><label>ext2</label><input id="entityext2" class="dfinput" type="text" name="ext2"  value="${ entity.ext2}" data-rule-required="true"/></li>--%>
<%--		<li><label>ext3</label><input id="entityext3" class="dfinput" type="text" name="ext3"  value="${ entity.ext3}" data-rule-required="true"/></li>--%>
	    
    
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
    </ul>
    </form>
    </div>
</body>
</html>
